<%% @heading = "<%= model_name %>" %>

<h1>Dados do <%%= @heading %></h1>

<%%= link_to image_tag("editar.png")+ " Editar", :action => "editar<%= controller_class_name %>", :id => @<%= singular_name %>, :page => @page %>
&nbsp;&nbsp;
<%%= link_to image_tag("remover.png")+ " Remover", {:action => "apagar<%= controller_class_name %>", :id => @<%= singular_name %>, :page => @page}, :confirm => "Tem certeza?" %>
&nbsp;&nbsp;
<%%= link_to image_tag("voltar.png")+ " Voltar para Listagem", :action => "listar<%= controller_class_name %>", :page => @page %>

<br><br>

<div id="ver_detalhes">
    <table cellspacing="1">
        <% eval(model_name + '.content_columns').each do |column| -%>
        <tr>
            <th width="100"><%= column.human_name %>: </th>
            <td><%%= @<%= singular_name %>.<%= column.name %> %></td>
        </tr>
        <% end -%>
    </table>

</div>